package id.net.iconpln.bb.client.tools;

import id.net.iconpln.bb.client.data.TestData;
import id.net.iconpln.bb.client.model.Waktu;

import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.form.ComboBox;

public class TahunSelector extends ComboBox<Waktu>{
		public TahunSelector(){
			
			ListStore<Waktu> store = new ListStore<Waktu>();
			store.add(TestData.getTahuns());     
			setEmptyText("Tahun....");  
			setDisplayField("tahun");  
			setStore(store);
			setWidth(80);       
			setTypeAhead(true);  
			setTriggerAction(TriggerAction.ALL);
			
		}
}
